<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj = {
        _price: 10,

        get price() { 
            console.log("执行get")
            return this._price 
        },

        set price(val) { 
            console.log("执行set")
            this._price = val 
        }
        

    }
    console.log(obj._price)
    ++obj._price
    console.log(obj._price)



    var proxy = new Proxy({}, {
  get: function(target, propKey) {
    return 35;
  }
});
console.log(proxy.time)
console.log(proxy.name)
console.log(proxy.title)
console.log(proxy.dick)
 // 35
// 35

    </script>
</body>
</html>